Allow passing a NULL window to gdk_device_query_state
authorMatthias Clasen <mclasen@redhat.com>
Tue, 8 Aug 2017 23:45:09 +0000 (19:45 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 11 Aug 2017 19:45:24 +0000 (15:45 -0400)
commit9859f8f69f004dd16c2fc54614c121c5852226b6
treeb273418a33395cf03fdc56b8b4beb8bcf21bda66
parentc409fca703cd5e8c90b2843aa2613b34405284b9
Allow passing a NULL window to gdk_device_query_state

Interpret NULL as "root window" here - we only have one
screen nowadays, so there is no choice involved, and this
will let us avoid dealing with the root window in the
fontend code.
gdk/broadway/gdkdevice-broadway.c
gdk/mir/gdkmirkeyboard.c
gdk/mir/gdkmirpointer.c
gdk/quartz/gdkdevice-core-quartz.c
gdk/wayland/gdkdevice-wayland.c
gdk/win32/gdkdevice-win32.c
gdk/win32/gdkdevice-wintab.c
gdk/x11/gdkdevice-core-x11.c
gdk/x11/gdkdevice-xi2.c